package cloud.code.serverTwo.web.service;

import cloud.code.serverTwo.web.service.impl.ApiServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "SERVER-ONE", fallback = ApiServiceImpl.class)
public interface ApiService {

    @RequestMapping(value = "/provider/index", method = RequestMethod.GET)
    String index();
}
